home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší hry / Nejlepsi hry.iso / hry / 6zenichu / 6+1 install_txt.exe / 6 zenichu a 1 navic.exe / scripts / DefineButton2_4847 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2003-11-28  |  1.4 KB  |  57 lines

  1. on(release){
  2.    if(_root.poz == "c")
  3.    {
  4.       if(_root.draglej == 55)
  5.       {
  6.          _root.stopdragall();
  7.          _root.itembar_remove(55);
  8.          _root.ii55 = 2;
  9.          _root.venca.gotoAndPlay("srdce");
  10.          _root.hideall();
  11.       }
  12.       else if(_root.draglej == 52)
  13.       {
  14.          _root.stopdragall();
  15.          _root.itembar_remove(52);
  16.          _root.ii52 = 3;
  17.          _root.venca.gotoAndPlay("mozecek");
  18.          _root.hideall();
  19.       }
  20.       else if(0 < _root.draglej)
  21.       {
  22.          if(eval("_root.mon_061_i" add _root.draglej add "_100") == undefined)
  23.          {
  24.             _root.d_venca.l = "mon_061_iundef_100";
  25.             _root.d_venca.i = "go";
  26.          }
  27.          else
  28.          {
  29.             _root.d_venca.l = "mon_061_i" add _root.draglej add "_100";
  30.             _root.d_venca.i = "go";
  31.          }
  32.          _root.stopdragall();
  33.          _root.hideall();
  34.       }
  35.       else
  36.       {
  37.          if(_root.ii55 >= 2 && _root.ii52 >= 3)
  38.          {
  39.             _root.d_venca.l = "mon_061_after_100";
  40.             _root.d_venca.i = "go";
  41.          }
  42.          else
  43.          {
  44.             _root.d_venca.l = "mon_061_100";
  45.             _root.d_venca.i = "go";
  46.          }
  47.          _root.stopdragall();
  48.          _root.hideall();
  49.       }
  50.    }
  51.    else
  52.    {
  53.       _root.venca.gotoAndPlay(_root.poz add "c");
  54.       _root.stopdragall();
  55.    }
  56. }
  57.